# -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from django_moneyguard import views

urlpatterns = patterns('',
    url(r'^$', views.menu.index, name='index'),
    url(r'^login/$', 'django.contrib.auth.views.login',
        {'template_name': 'django_moneyguard/registration/login.html'},
        name='login'),
    url(r'^logout/$', 'django.contrib.auth.views.logout',
        {'template_name': 'django_moneyguard/registration/logged_out.html'},
        name='logout'),
    url(r'^setup/$', 'django_moneyguard.views.menu.setup', name='setup'),
    url(r'^setup/account/list/$', views.account.AccountList.as_view(),
        name='setup.account_list'),
    url(r'^setup/account/add/$', views.account.AccountCreate.as_view(),
        name='setup.account_create'),
    url(r'^setup/account/(?P<pk>\d+)/edit/$',
        views.account.AccountUpdate.as_view(),
        name='setup.account_update'),
    url(r'^setup/account/(?P<pk>\d+)/delete/$',
        views.account.AccountDelete.as_view(),
        name='setup.account_delete'),
    url(r'^setup/creditCard/list/$',
        views.creditcard.CreditCardList.as_view(),
        name='setup.creditcard_list'),
    url(r'^setup/creditCard/add/$',
        views.creditcard.CreditCardCreate.as_view(),
        name='setup.creditcard_create'),
    url(r'^setup/creditCard/(?P<pk>\d+)/edit/$',
        views.creditcard.CreditCardUpdate.as_view(),
        name='setup.creditcard_update'),
    url(r'^setup/creditCard/(?P<pk>\d+)/delete/$',
        views.creditcard.CreditCardDelete.as_view(),
        name='setup.creditcard_delete'),
)
